package com.zhiyun.net;

import android.app.Activity;

public interface MessageInterceptor {

	boolean before(Activity ctx, Request req, Response resp);

	boolean after(Activity ctx, Request req, Response resp);

	public static MessageInterceptor EMPTRY = new MessageInterceptor() {

		@Override
		public boolean before(Activity ctx, Request req, Response resp) {
			return true;
		}

		@Override
		public boolean after(Activity ctx, Request req, Response resp) {
			return true;
		}

	};

}
